package com.leyou.auth.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {

    /**
     * 验证服务等信息，返回加密key
     *
     * @param clientId
     * @param secret
     * @return
     */
    @GetMapping("/client/key")
    String getAuthKey(
            @RequestParam("clientId") String clientId,
            @RequestParam("secret") String secret);
}
